import request from '@/config/axios'
type RetrieveResearchFileParams = {
  ft: string
  page: number
  page_size: number
}
export const RetrieveResearchFile = (params: RetrieveResearchFileParams): Promise<IResponse> => {
  return request.get({ url: '/v1/admin/dailymaintain/periodReport/retrieve/', params })
}
export const UpdateResearchFile = (data: any): Promise<IResponse> => {
  return request.put({ url: '/v1/admin/dailymaintain/periodReport/update/', data })
}
export const RetrieveDeparementWorkFileList = (date: string): Promise<IResponse> => {
  return request.get({
    url: '/v1/admin/dailymaintain/periodReport/departmentWorkFileList/',
    params: { date }
  })
}
export const CopyDepartmentWorkFile = (data: any) => {
  return request.post({ url: '/v1/admin/dailymaintain/periodReport/create/', data })
}
